package newpostman.pojo;

import java.util.List;

public class Item {
    private String name;
    private String url;
    private String header;
    private String method;
    private String description;
    private List<Descript> descriptList;
    private List<Example> exampleList;

    public Item() {
    }

    public Item(String name, String url, String method) {
        this.name = name;
        this.url = url;
        this.method = method;
    }

    public Item(String name, String url, String method, String description) {
        this.name = name;
        this.url = url;
        this.method = method;
        this.description = description;
    }

    public Item(String name, List<Example> exampleList) {
        this.name = name;
        this.exampleList = exampleList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Example> getExampleList() {
        return exampleList;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Descript> getDescriptList() {
        return descriptList;
    }

    public void setDescriptList(List<Descript> descriptList) {
        this.descriptList = descriptList;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    @Override
    public String toString() {
        return "Item{" +
                "name='" + name + '\'' +
                ", exampleList=" + exampleList +
                '}';
    }



    public void setExampleList(List<Example> exampleList) {
        this.exampleList = exampleList;
    }
}
